--TEST--
If you attempt to register a non-valid callback with registerCallback(), a
pear2::template_engine::Template_InvalidCallbackException will be thrown.
--FILE--
<?php

require_once __DIR__ . '/_setup.inc';

$template = new pear2::template_engine::Template(__FILE__);
try {
    $template->registerCallback('unknown_and_unkowable_function', 'foo');
    trigger_error('exception not caught');
} catch (pear2::template_engine::exceptions::InvalidCallbackException $e) {

}
?>
===DONE===
--EXPECT--
===DONE===
